import { Controller, Get, Query } from '@nestjs/common';
import { MenuService } from './menu.service';

@Controller('menu')
export class MenuController {
  constructor(private readonly menuService: MenuService) {}
  @Get()
  getUserMenu(@Query('id') roleId) {
    return this.menuService.getMenu(roleId);
  }
}
